Skip to content

Update coloc related functions #386

Merged
gaow merged 7 commits intomainfrom
update_coloc
May 15, 2025
Merged

Update coloc related functions #386
gaow merged 7 commits intomainfrom
update_coloc

Conversation

@rfeng2023
Copy link
Copy Markdown
Collaborator

This commit includes:

  1. Match variants in allele_qc
  2. Add sample LD mode in load_and_extract_ld_matrix, since the LD reference panel is no longer appropriate for two xQTL modalities. This is using original genotype data instead of residual genotype data.
  3. Add a correlation function get_cormat from ColocBoost, for above in sample LD calculation
  4. Minor fix to get_nested_element to allow '' as input and skip that layer — useful for multi-context/gene structures with different layer hierarchies

Comment thread R/allele_qc.R Outdated
match_result[strand_flipped_indices, "A2.target"] <- strand_flip(match_result[strand_flipped_indices, "A2.target"])
}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should we do with this FIXME?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here was just a space character accidentally added during a previous modification—nothing substantial was changed (I went through several attempts to fix it, but eventually realized that simply keeping the original ID was the easiest solution.)

@gaow
Copy link
Copy Markdown
Contributor

gaow commented May 1, 2025

Thanks Ru I think the code can be made more general in merging fsusie and SuSiE input, and when LD matrices are Indeed loaded we should be able to do a better size check using purity in the filter LBF part as we discussed yesterday. But it's fine for the time being. I might work with Hao for another round of improvement next week

@gaow
Copy link
Copy Markdown
Contributor

gaow commented May 14, 2025

Thanks @rfeng2023 so this patch is good to merge based on your standards? Just wonder if there are still any known issues.

@rfeng2023
Copy link
Copy Markdown
Collaborator Author

Thanks @rfeng2023 so this patch is good to merge based on your standards? Just wonder if there are still any known issues.

yes please @gaow

@gaow gaow merged commit cf24f9e into main May 15, 2025
0 of 7 checks passed
@gaow gaow deleted the update_coloc branch April 19, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants